<!DOCTYPE HTML>
<html>
<head>
<meta name="viewport" content="width=320, user-scalable=no" />
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
<title>NFC Reader</title>
	<script type="text/javascript" charset="utf-8" src="cordova.js"></script>
	<script type="text/javascript" charset="utf-8" src="phonegap-nfc.js"></script>
	<script type="text/javascript" charset="utf-8" src="phonegap-toast.js"></script>
    <script type="text/javascript" charset="utf-8" src="js/write.js"></script>
    <script type="text/javascript">
//		var btn = document.getElementById('write');
//		btn.onclick = function(){
	        app.initialize();
//		};
    </script>
</head>
<body>
    <div data-role="page">
        <div data-role="header" data-theme="b" data-add-back-btn="true">
		    <h1>S-Pet Writer v0.23</h1>
        </div>
        <div data-role="content">
	
    <form>
      Mime Type:<br/>
      <input type="text" name="mimeType" value="text/x-vCard" size="30" /><br/>
      URL:<br/>      
      <input type="text" name="url" value="http://goo.gl/CSAaVz" size="30" /><br/>
      Payload:<br/>      
      <textarea name="payload" rows="10" cols="30">test</textarea>
    </form>
		    <button id="write">write!!!</button>
    <p>
        Tap an NFC tag to write data.
    </p>
		    <h1><a href="index.html">WEB App main</a></h1>
		    <h3><a href="read.html">Read</a></h3>
	</div>
</div>

</body>
</html>